//
//  AboutUsPageController.m
//  WashForU
//
//  Created by 王俊 on 15/12/9.
//  Copyright © 2015年 王俊. All rights reserved.
//

#import "AboutUsPageController.h"

@interface AboutUsPageController ()
@property(nonatomic,strong)UIWebView   *webView;

@end

@implementation AboutUsPageController

- (void)viewDidLoad
{
    [super viewDidLoad];
    [self customViewSetUp];
    [self customConstrainsAdd];
    [self targetAdd];
}
/*****************添加视图组件********************/
- (void)customViewSetUp
{
    self.titleLabel.text = @"关于浣客";
    self.webView = [[UIWebView alloc]init];
    self.webView.backgroundColor = [UIColor clearColor];
    NSString *path = @"http://www.huankxy.com";
    NSURL    *url  = [NSURL URLWithString:path];
    [self.view addSubview:self.webView];

    [self.webView loadRequest:[NSURLRequest requestWithURL:url]];
    
    
    
    
}
/*******************添加约束**********************/
- (void)customConstrainsAdd
{
    [self.webView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.upView.mas_bottom).offset(1);
        make.trailing.leading.bottom.equalTo(self.view);
    }];
}

- (void)targetAdd
{
    
    [self.backButton addTarget:self action:@selector(backButtonClicked) forControlEvents:UIControlEventTouchUpInside];
}


@end
